package lock.deadlock;

import java.math.BigDecimal;

/**
 * 帐户类 用于演示死锁
 *
 * @author 86155
 * @date 2025/08/16
 */
public class Account {

    /**
     * 账户名称
     */
    private String accountName;

    /**
     * 余额
     */
    private BigDecimal balance;

    public Account(String accountName, BigDecimal balance) {
        this.accountName = accountName;
        this.balance = balance;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
}
